{extend name="./application/admin/view/public/base.html" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('admin/index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>用户列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-title">
		<h5>用户列表</h5>
	</div>
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-6">
					<div class="input-group">
						<a href="{:url('lists')}" class="btn btn-primary btn-outline ajax-do">同步用户</a>
						&nbsp;&nbsp;&nbsp;(同步用户耗时较久，请耐心等待！！！)
					</div>
				</div>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<form method="post" action="{:url('index')}">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50">
									<input type="checkbox" class="check-all">
								</th>
								<th>昵称</th>
								<th>头像</th>
								<th>身份</th>
								<th>所在地</th>
								<th>关注时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="user_list" item="vo"}
							<tr>
								<td class="text-center">
									<input type="checkbox" name="ids[]" value="{$vo.id}">
								</td>
								<td>{$vo.nickname}</td>
								<td class="text-center">
									<img src="{$vo.headimgurl}" class="headimg"/>
								</td>
								<td class="text-center">
									{if condition="$vo.subscribe eq 1"}<span class="label label-info">会员</span> {else/}
									<span class="label label-danger">游客</span> {/if}
								</td>
								<td class="text-center">{$vo.province}-{$vo.city}</td>
								<td class="text-center">{$vo.subscribe_time|date='Y-m-d H:i:s',###}</td>
								<td class="text-center">
									<a href="{:url('update',['id'=>$vo.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
				</form>
				{$user_list->render()}
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script>
</script>
{/block}